package me.davenkin.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by Administrator on 2016/8/11.
 */
@Controller
public class TextController {

    @RequestMapping("/index.do")
    public ModelAndView index(HttpServletRequest req, HttpServletResponse res, ModelAndView mv) {
        mv.addObject("user","username");
        mv.setViewName("index");
        return mv;
    }
}
